Scandir creates an iterator of DirEntry objects in python programming